package com.jmp.api.crm.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;
import one.stand.dto.PageResponse2;

import java.util.List;

/**
 * @author cjr
 */
@Data
@Builder
@ApiModel
public class GoodsTypeListResponse {
    @ApiModelProperty
    public PageResponse2<Type> pageInfo;

    public List<Type> types;

    @Data
    @Builder
    public static class Type {
        private Integer goodstypeId;
        private String name;
        private String groupName;
        private Integer parentId;
        private Integer goodsNum;
        private Integer dealNum;

        private List<Type> children;
        private boolean hasChildren;
    }
}
